<?php
class BaseAction extends Action {
	public function isMobile(){
		$agent =  strtolower($_SERVER['HTTP_USER_AGENT']);
		dump($agent);
		$uachar = '/(iphone|Android|ucweb|nokia|sony|ericsson|mot|samsung|sgh|lg|sie|philips|panasonic|alcatel|lenovo|cldc|midp|wap|mobile)/i';
		if(preg_match($uachar, $agent)){
			return true;
		}else{
			return false;
		}
	}
}